package top.cluski.feieprint.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;
import lombok.experimental.Accessors;
import top.cluski.feieprint.mapper.YouzanDelayShipMapper;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@Table("youzan_delay_ships")
public class YouzanDelayShipEntity {

    @Id(keyType = KeyType.Generator, value = KeyGenerators.flexId)
    private Long id;

    @Column("youzan_order_id")
    private String youzanOrderId;

    @Column("ship_time")
    private LocalDateTime shipTime;

    @Column(value = "create_time", onInsertValue = "now()")
    private LocalDateTime createTime;

    @Column(value = "update_time", onUpdateValue = "now()")
    private LocalDateTime updateTime;

    public static YouzanDelayShipEntity create() {
        return new YouzanDelayShipEntity();
    }
}
